import Constant from 'src/config/Constant';
import { BullModule } from '@nestjs/bullmq';

const redisConfig = Constant.redisConfig
export default BullModule.forRoot({
    connection: {
        host: redisConfig.host,
        port: redisConfig.port,
        password: redisConfig.password,
    },
    prefix: 'nestjs_queue',
})
export const AudioMQ = BullModule.registerQueue({
    name: 'audio'
})

export const FlowProducerName = BullModule.registerFlowProducer({
    name: 'flowProducerName',
});